From 925ed7c70fb86e06aadbb1c29134573d57294e10 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 29 Aug 2011 11:57:39 -0400 Subject: [PATCH] Don't unref floating menuitems With recent fixes, GTK+ no longer sinks menu items automatically, so we have to do it explicitly here. --- gtk/tests/action.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gtk/tests/action.c b/gtk/tests/action.c index dffb5b18fe..6617d9521a 100644 --- a/gtk/tests/action.c +++ b/gtk/tests/action.c @@ -57,6 +57,7 @@ menu_item_label_notify_count (ActionTest *fixture, GtkWidget *item = gtk_menu_item_new (); unsigned int emmisions = 0; + g_object_ref_sink (item); g_signal_connect (item, "notify::label", G_CALLBACK (notify_count_emmisions), &emmisions); -- 2.30.2